//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_HANDWRITING_H__
#define __ELASTOS_HANDWRITING_H__

#include <ddk.h>
#include "nu_api.h"
#include "zenr_api.h"
#include "drvassistant.h"

#define HANDWRITING_BUFFERSIZE 8

struct ControlData
{
char tl_x;
char tl_y;
char br_x;
char br_y;
UInt16 type;
};

class CHandwriting : public CDeviceDriver {
public:
    CHandwriting();

    CARAPI Read(
        /* [in] */ Int64 offset,
        /* [in] */ Int32 bytesToRead,
        /* [out] */ MemoryBuf* pBuffer,
        /* [out] */ IEvent** ppCompletionEvent);

    CARAPI Write(
        /* [in] */ Int64 offset,
        /* [in] */ const MemoryBuf &buffer,
        /* [out] */ Int32* pBytesWritten,
        /* [out] */ IEvent** ppCompletionEvent) {
        return E_NOT_IMPLEMENTED;
    }

    CARAPI Control(
        /* [in] */ Handle32 controlCode,
        /* [in] */ const MemoryBuf &inBuffer,
        /* [out] */ MemoryBuf* pOutBuffer,
        /* [out] */ IEvent** ppCompletionEvent);

    virtual void Dispose() {}

public:
};

#endif // __ELASTOS_HANDWRITING_H__

